// 设置响应头的中间件
module.exports = async (context, next) => {
  const contentType = "application/json; charset=UTF-8"
  context.set("Content-Type", contentType)
  context.set("Access-Control-Allow-Origin", "*")
  context.set("Access-Control-Allow-Methods", "GET, PUT, POST, DELETE, OPTIONS")
  await next()
}